<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Line_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-line_id" data-rule="required" data-source="line/index" data-field="line_name" class="form-control selectpage" name="row[line_id]" type="text" value="{$row.line_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Station_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-station_id" data-rule="required" data-source="station/index" data-field="station_name" class="form-control selectpage" name="row[station_id]" type="text" value="{$row.station_id|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area" data-rule="required" class="form-control" name="row[area]" type="text" value="{$row.area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Station_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-station_name" data-rule="required" class="form-control" name="row[station_name]" type="text" value="{$row.station_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coordinate_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coordinate_lat" data-rule="required" class="form-control" name="row[coordinate_lat]" type="text" value="{$row.coordinate_lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coordinate_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coordinate_lng" data-rule="required" class="form-control" name="row[coordinate_lng]" type="text" value="{$row.coordinate_lng|htmlentities}">
        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_shang')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_shang" data-rule="required" class="form-control selectpicker" name="row[is_shang]">
                {foreach name="isShangList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_shang"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_jie')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_jie" data-rule="required" class="form-control selectpicker" name="row[is_jie]">
                {foreach name="isJieList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_jie"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_shang')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-is_shang" name="row[is_shang]" type="hidden" value="{$row.is_shang}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_shang" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success  {eq name="$row.is_shang" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
            
            <div data-favisible="is_shang=1" class="p-3">
                <label class="control-label col-xs-12 col-sm-2">{:__('Is_jie')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input  id="c-is_jie" name="row[is_jie]" type="hidden" value="{$row.is_jie}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_jie" data-yes="1" data-no="0" >
                        <i class="fa fa-toggle-on text-success {eq name="$row.is_jie" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_xia')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-is_xia" data-rule="required" class="form-control selectpicker" name="row[is_xia]">
                {foreach name="isXiaList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_xia"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_song')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-is_song" data-rule="required" class="form-control selectpicker" name="row[is_song]">
                {foreach name="isSongList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_song"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div> -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_xia')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-is_xia" name="row[is_xia]" type="hidden" value="{$row.is_xia}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_xia" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.is_xia" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
            
            <div data-favisible="is_xia=1" class="p-3">
                <label class="control-label col-xs-12 col-sm-2">{:__('Is_song')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input  id="c-is_song" name="row[is_song]" type="hidden" value="{$row.is_song}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-is_song" data-yes="1" data-no="0" >
                        <i class="fa fa-toggle-on text-success {eq name="$row.is_xia" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tags')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tags" class="form-control" data-role="tagsinput" name="row[tags]" type="text" value="{$row.tags|htmlentities}">
        </div>
    </div>

    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Map_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-map_type" class="form-control selectpicker" name="row[map_type]">
                {foreach name="mapTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.map_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div> -->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Map_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label><input type="radio" name="row[map_type]" value="0" {eq name="$row.map_type" value="0"}checked{/eq}/> 无</label> 
            <label><input type="radio" name="row[map_type]" value="1" {eq name="$row.map_type" value="1"}checked{/eq}/> 电子围栏</label> 
            <label><input type="radio" name="row[map_type]" value="2" {eq name="$row.map_type" value="2"}checked{/eq}/> 地图选点</label>
            <div data-favisible="map_type=1" class="p-3">
                <a  class="btn btn-primary" class="input-group-btn" data-toggle="wleaflet-select" data-type="polygon" data-input-id="c-map_json" >电子围栏</a>
            </div>
            <div data-favisible="map_type=2" class="p-3">
                <a  class="btn btn-primary" class="input-group-btn" data-toggle="wleaflet-select" data-type="address" >地图选点</a>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Map_json')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-map_json" class="form-control " rows="5" name="row[map_json]" readonly cols="50">{$row.map_json|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-switch" name="row[switch]" type="hidden" value="{$row.switch}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>

    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div> -->
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
